import { ICONFONT_URL } from '@/constants';
import { createFromIconfontCN } from '@ant-design/icons';

interface Props {
  type: string;
}

const Icon = createFromIconfontCN({
  scriptUrl: ICONFONT_URL,
});

const IconFont: React.FC<Props> = ({ type }) => {
  return <Icon type={type} />;
};
export default IconFont;
